/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controllers;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.*;
import javax.servlet.http.*;
import models.Bean;
import models.SHA1;

/**
 *
 * @author Kaoutar Azagagh
 */
public class LanguageController extends HttpServlet{
    
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        //HttpSession session = request.getSession(true);
        
        //response.setContentType("text/html;charset=UTF-8");
        String language = request.getParameter("lang");
        Bean b = new Bean();
        b.setLanguage(language);
        request.setAttribute("inhoud", b);
        RequestDispatcher d = request.getRequestDispatcher("");
        d.forward(request, response);
        
        
        
        
        //session.setAttribute("language", language);
        //response.sendRedirect("/");
    }
}
